﻿package com.ease.model
{
	import com.ease.model.type.DatabaseDataType;
	import com.ease.model.type.DatabaseNullable;

	[Bindable]
	[RemoteClass(alias="com.ease.model.DatabaseColumn")]
	
	public class DatabaseColumn
	{
		public static const COLUMN_NAME:String="COLUMN_NAME";
		public static const DATA_TYPE:String="DATA_TYPE";
		public static const DATA_LENGTH:String="DATA_LENGTH";
		public static const DATA_PRECISION:String="DATA_PRECISION";
		public static const DATA_SCALE:String="DATA_SCALE";
		public static const NULLABLE:String="NULLABLE";
		public static const COLUMN_ID:String="COLUMN_ID";
		public static const COMMENTS:String="COMMENTS";

		private var _columnName:String;
		private var _dataType:com.ease.model.type.DatabaseDataType;
		private var _dataLength:int;
		private var _dataPrecision:int;
		private var _dataScale:int;
		private var _nullable:com.ease.model.type.DatabaseNullable;
		private var _columnId:Number;
		private var _comments:String;

		public function DatabaseColumn()
		{
		}

		public function get columnName():String
		{
			return _columnName;
		}

		public function set columnName(value:String):void
		{
			_columnName = value;
		}

		public function get dataType():com.ease.model.type.DatabaseDataType
		{
			return _dataType;
		}

		public function set dataType(value:com.ease.model.type.DatabaseDataType):void
		{
			_dataType = value;
		}

		public function get dataLength():int
		{
			return _dataLength;
		}

		public function set dataLength(value:int):void
		{
			_dataLength = value;
		}

		public function get dataPrecision():int
		{
			return _dataPrecision;
		}

		public function set dataPrecision(value:int):void
		{
			_dataPrecision = value;
		}

		public function get dataScale():int
		{
			return _dataScale;
		}

		public function set dataScale(value:int):void
		{
			_dataScale = value;
		}

		public function get nullable():com.ease.model.type.DatabaseNullable
		{
			return _nullable;
		}

		public function set nullable(value:com.ease.model.type.DatabaseNullable):void
		{
			_nullable = value;
		}

		public function get columnId():Number
		{
			return _columnId;
		}

		public function set columnId(value:Number):void
		{
			_columnId = value;
		}

		public function get comments():String
		{
			return _comments;
		}

		public function set comments(value:String):void
		{
			_comments = value;
		}
	}
}